<div ng-controller="IndexHeaderController" id="b-u-header">
    <div class="wrap">
        <div class="brand">
            <a href="#/">
                <img src="__ASSERTS__/res/img/logo-r.png"/>
                <?php echo tpx_config_get('home_title'); ?>
            </a>
        </div>
        <div class="tools">
            <a href="">欢迎 {{data.username}}</a>
            <a ui-sref="doc" ng-class="{cur:$state.includes('doc')}" href="">文档</a>
            <a ui-sref="user" ng-class="{cur:$state.includes('user')}" href="">设置</a>
            <?php if (tpx_config('cas_login_enable')) { ?>
            <li><a href="{:U('User/logout')}">退出</a></li>
            <?php }else{ ?>
            <a ng-click="logout()" href="">退出</a>
            <?php } ?>
            <a href="#" class="user-intro-btn">?</a>
        </div>
    </div>
    <div id="status-loading">
        <img src="__ASSERTS__/image/loading.gif"/>
    </div>
    <div id="status-success"></div>
    <div id="status-error"></div>
</div>